package com.wxgo.dao;

import java.util.List;

import com.wxgo.common.model.Fmenu;
import com.wxgo.dao.base.BaseDao;

public class FMenuDao extends BaseDao {

	static Fmenu dao = Fmenu.dao;

	public List<Fmenu> find() {
		return find("select * from fmenu order by od");
	}

	public List<Fmenu> find(String sql) {
		return dao.find(sql);
	}

	public boolean add(Fmenu m) {
		return m.save();
	}

	public boolean update(Fmenu m) {
		return m.update();
	}

	public boolean delete(Integer id) {
		return dao.deleteById(id);
	}

	public Fmenu findById(Integer id) {
		return dao.findById(id);
	}

}
